package rmhc.api.fb
{
	import rmhc.api.ApiWrapper;
	import rmhc.api.dataflow.UserInfo;
	
	public class GetUserInfo extends FbApiTask
	{
		protected var info:UserInfo;
		
		public function GetUserInfo(wrapper:ApiWrapper, userId:String )
		{
			super( wrapper, userId );
		}
		
		override public function parseData(result:Object, fail:Object=null):void
		{
			info = parseUserInfo( result );
			onComplete();
		}
		
		public function getInfo():UserInfo
		{
			return info;
		}
	}
}